package megrez.bussiness.schedule.web.dto;

import lombok.Getter;
import lombok.Setter;
import megrez.bussiness.schedule.entity.Job.State;
import megrez.common.jpa.AbstractIdAuditingDto;

/**
 * 任务信息传输对象
 *  
 * @author Lucky Yang
 * @since 0.0.1
 */
@Getter
@Setter
public class JobDto extends AbstractIdAuditingDto {
    private String className;
    private String methodName;
    private String methodParams;
    private String cronExpression;
    private String remark;
    private Boolean enabled;
    private State state;
   

    public JobDto() {
    }

    public JobDto(String className, String methodName, String methodParams, String cronExpression, String remark) {
        this.className = className;
        this.methodName = methodName;
        this.methodParams = methodParams;
        this.cronExpression = cronExpression;
        this.remark = remark;
        this.enabled = true;
        this.state = State.STOPPED;
    }  

    
}
